<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>熊茂屹的爬虫作业--知乎大咖信息</title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="assets/img/favicon.png" rel="icon">
  <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="assets/vendor/aos/aos.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
  <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="assets/css/style.css" rel="stylesheet">

  <!-- =======================================================
  * Template Name: iPortfolio - v3.7.0
  * Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
  * Author: BootstrapMade.com
  * License: https://bootstrapmade.com/license/
  ======================================================== -->
</head>

<body>

  <!-- ======= Mobile nav toggle button ======= -->
  <i class="bi bi-list mobile-nav-toggle d-xl-none"></i>

  <!-- ======= Header ======= -->
  <header id="header">
    <div class="d-flex flex-column">

      <div class="profile">
        <img src="assets/img/profile-img.jpg" alt="" class="img-fluid rounded-circle">
        <h1 class="text-light"><a href="{{ url_for('search_for_name', name=session['name']) }}">Xiong Maoyi</a></h1>
      </div>

      <nav id="navbar" class="nav-menu navbar">
        <ul>
          <li><a href="#hero" class="nav-link scrollto active"><i class="bx bx-home"></i> <span>Home</span></a></li>
          <li><a href="#token-get" class="nav-link scrollto"><i class="bx bx-book-content"></i> <span>Url-token信息输入</span></a></li>
          {% if data|length != 0 %}
          <li><a href="#base—info" class="nav-link scrollto"><i class="bx bx-user"></i> <span>基本信息</span></a></li>
          <li><a href="#social-relation-following" class="nav-link scrollto"><i class="bx bx-file-blank"></i> <span>社交关系信息</span></a></li>
          <li><a href="#answer" class="nav-link scrollto"><i class="bx bx-server"></i> <span>动态信息</span></a></li>
          {% endif %}
          <!-- <li><a href="#contact" class="nav-link scrollto"><i class="bx bx-envelope"></i> <span>Contact</span></a></li> -->
        </ul>
      </nav><!-- .nav-menu -->
    </div>
  </header><!-- End Header -->

  <!-- ======= Hero Section ======= -->
  <section id="hero" class="d-flex flex-column justify-content-center align-items-center">
    <div class="hero-container" data-aos="fade-in">
      <h1>Xiong Maoyi</h1>
      <p>Work: <span class="typed" data-typed-items=" (1)基本属性信息,  (2)社交关系信息,  (3)动态信息"></span></p>
    </div>
  </section><!-- End Hero -->

  <main id="main">

    <!-- ======= 信息输入部分 ======= -->
    <section id="token-get" class="contact">
      <div class="container">

        <div class="section-title">
          <h2>检索信息输入</h2>
          <p>请输入需要检索的人物Url-token</p>
        </div>

        <div class="row" data-aos="fade-in">
          <div class="d-flex align-items-stretch">
            <form action="/search" method="post" role="form" class="php-email-form">
              <div class="row">
                <div class="form-group">
                  <label>Url-token:</label>
                  <input type="text" name="name" class="form-control" id="name" required>
                </div>
              <div class="text-center"><button type="submit">确认检索</button></div>
            </form>
          </div>

        </div>

      </div>
    </section><!-- End Contact Section -->

    {% if data['personal_info']|length != 0 %}
    <!-- ======= 基本信息部分 ======= -->
    <section id="base—info" class="about">
      <div class="container">

        <div class="section-title">
          <h2>基本信息展示</h2>
          <!-- <p>Magnam dolores commodi suscipit. Necessitatibus eius consequatur ex aliquid fuga eum quidem. Sit sint consectetur velit. Quisquam quos quisquam cupiditate. Et nemo qui impedit suscipit alias ea. Quia fugiat sit in iste officiis commodi quidem hic quas.</p> -->
        </div>

        <div class="row">
          <div class="content" data-aos="fade-left">
            <!-- 用户名 -->
            
            <h3>{{ data['personal_info'][-1][1] }}</h3>
            <!-- 一句话介绍 -->
            <p class="fst-italic">
              {{ data['personal_info'][-1][3] }}
            </p>
            <div class="row">
              <div class="col-lg-12">
                <ul>
                  <li><i class="bi bi-chevron-right"></i> <strong>性别:</strong> <span>{{ data['personal_info'][-1][2] }}</span></li>
                  <li><i class="bi bi-chevron-right"></i> <strong>居住地:</strong> <span>{{ data['personal_info'][-1][4] }}</span></li>
                  <li><i class="bi bi-chevron-right"></i> <strong>所在行业:</strong> <span>{{ data['personal_info'][-1][5] }}</span></li>
                  <li><i class="bi bi-chevron-right"></i> <strong>职业经历:</strong> <span>{{ data['personal_info'][-1][6] }}</span></li>
                  <li><i class="bi bi-chevron-right"></i> <strong>个人简介:</strong></li>
                </ul>
              </div>
            </div>
            <!-- 个人简介主体部分 -->
            <p>
              {{ data['personal_info'][-1][7] }}
            </p>
          </div>
        </div>
      </div>
    </section><!-- End About Section -->

    <!-- ======= 社交关系信息部分--关注人信息列表 ======= -->
    <section id="social-relation-following" class="testimonials section-bg">
      <div class="container">

        <div class="section-title">
          <h2>关注人信息列表</h2>
          <!-- <p>Magnam dolores commodi suscipit. Necessitatibus eius consequatur ex aliquid fuga eum quidem. Sit sint consectetur velit. Quisquam quos quisquam cupiditate. Et nemo qui impedit suscipit alias ea. Quia fugiat sit in iste officiis commodi quidem hic quas.</p> -->
        </div>

        <div class="testimonials-slider swiper" data-aos="fade-up" data-aos-delay="100">
          <div class="swiper-wrapper">
            
            {% for i in range(data['following_info']|length) %}
              <div class="swiper-slide">
                <div class="testimonial-item" data-aos="fade-up" data-aos-delay="100">
                  <p> <strong>关注人序号:</strong> <span>{{ i+1 }}</span></p>
                  <p> <strong>用户昵称:</strong> <span>{{ data['following_info'][i][1] }}</span></p>
                  <p> <strong>链接地址:</strong> <a href="{{ data['following_info'][i][2] }}">{{ data['following_info'][i][2] }}</a></p>
                  <p> <strong>回答问题数:</strong> <span>{{ data['following_info'][i][3] }}</span></p>
                  <p> <strong>文章数:</strong> <span>{{ data['following_info'][i][4] }}</span></p>
                  <p> <strong>关注者人数:</strong><span>{{ data['following_info'][i][5] }}</span></p>
                </div>
              </div><!-- End testimonial item -->
            {% endfor %}


          </div>
          <div class="swiper-pagination"></div>
        </div>

      </div>
    </section><!-- End Testimonials Section -->

    <!-- ======= 社交关系信息部分--粉丝信息列表 ======= -->
    <section id="social-relation-follower" class="testimonials section-bg">
      <div class="container">

        <div class="section-title">
          <h2>粉丝信息列表</h2>
          <!-- <p>Magnam dolores commodi suscipit. Necessitatibus eius consequatur ex aliquid fuga eum quidem. Sit sint consectetur velit. Quisquam quos quisquam cupiditate. Et nemo qui impedit suscipit alias ea. Quia fugiat sit in iste officiis commodi quidem hic quas.</p> -->
        </div>

        <div class="testimonials-slider swiper" data-aos="fade-up" data-aos-delay="100">
          <div class="swiper-wrapper">

            {% for i in range(data['follower_info']|length) %}
              <div class="swiper-slide">
                <div class="testimonial-item" data-aos="fade-up" data-aos-delay="100">
                  <p> <strong>关注者序号:</strong> <span>{{ i+1 }}</span></p>
                  <p> <strong>用户昵称:</strong> <span>{{ data['follower_info'][i][1] }}</span></p>
                  <p> <strong>链接地址:</strong> <a href="{{ data['follower_info'][i][2] }}">{{ data['follower_info'][i][2] }}</a></p>
                  <p> <strong>回答问题数:</strong> <span>{{ data['follower_info'][i][3] }}</span></p>
                  <p> <strong>文章数:</strong> <span>{{ data['follower_info'][i][4] }}</span></p>
                  <p> <strong>关注者人数:</strong><span>{{ data['follower_info'][i][5] }}</span></p>
                </div>
              </div><!-- End testimonial item -->
            {% endfor %}

          </div>
          <div class="swiper-pagination"></div>
        </div>

      </div>
    </section><!-- End Testimonials Section -->

    <!-- ======= 动态信息--回答部分 ======= -->
    <section id="answer" class="services">
      <div class="container">

        <div class="section-title">
          <h2>回答问题列表</h2>
          <!-- <p>Magnam dolores commodi suscipit. Necessitatibus eius consequatur ex aliquid fuga eum quidem. Sit sint consectetur velit. Quisquam quos quisquam cupiditate. Et nemo qui impedit suscipit alias ea. Quia fugiat sit in iste officiis commodi quidem hic quas.</p> -->
        </div>
        <div class="row">

          {% for i in range(data['answer_info']|length) %}
          <div class="col-lg-4 col-md-6 icon-box" data-aos="fade-up" data-aos-delay="{{i * 100}}">
            <div class="icon"><i class="bi bi-card-checklist"></i></div>
            <h4 class="title"><a href="{{ url_for('search_for_question', question_id=data['answer_info'][i][-1]) }}">{{ data['answer_info'][i][1] }}</a></h4>
            <p class="description">
              <p>回答时间: <strong>{{ data['answer_info'][i][2] }}</strong></p>
              <p>评论数: <strong>{{ data['answer_info'][i][4] }}</strong></p>
              <p>点赞数: <strong>{{ data['answer_info'][i][5] }}</strong></p>
              <p>回答内容: <strong>{{ data['answer_info'][i][3] }}</strong></p>
            </p>
          </div>
          {% endfor %}

        </div>
      </div>
    </section><!-- End Services Section -->

    <!-- ======= 动态信息--提问部分 ======= -->
    <section id="quiz" class="services">
      <div class="container">

        <div class="section-title">
          <h2>提出问题列表</h2>
          <!-- <p>Magnam dolores commodi suscipit. Necessitatibus eius consequatur ex aliquid fuga eum quidem. Sit sint consectetur velit. Quisquam quos quisquam cupiditate. Et nemo qui impedit suscipit alias ea. Quia fugiat sit in iste officiis commodi quidem hic quas.</p> -->
        </div>
        <div class="row">

          {% for i in range(data['quiz_info']|length) %}
          <div class="col-lg-4 col-md-6 icon-box" data-aos="fade-up" data-aos-delay="{{i * 100}}">
            <div class="icon"><i class="bi bi-card-checklist"></i></div>
            <h4 class="title"><a href="{{ url_for('search_for_question', question_id=data['quiz_info'][i][-1]) }}">{{ data['quiz_info'][i][1] }}</a></h4>
            <p class="description">
              <p>发布时间: <strong>{{ data['quiz_info'][i][2] }}</strong></p>
              <p>评论数: <strong>{{ data['quiz_info'][i][4] }}</strong></p>
              <p>点赞数: <strong>{{ data['quiz_info'][i][5] }}</strong></p>
            </p>
          </div>
          {% endfor %}

        </div>
      </div>
    </section><!-- End Services Section -->
    {% endif %}

  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <footer id="footer">
    <div class="container">
      <div class="copyright">
        &ast; 熊茂屹 <strong><span>201902923014</span></strong>
      </div>
      <div class="credits">
        Mode <a href="https://bootstrapmade.com/">BootstrapMade</a>
      </div>
    </div>
  </footer><!-- End  Footer -->

  <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>

  <!-- Vendor JS Files -->
  <script src="assets/vendor/purecounter/purecounter.js"></script>
  <script src="assets/vendor/aos/aos.js"></script>
  <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
  <script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
  <script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
  <script src="assets/vendor/typed.js/typed.min.js"></script>
  <script src="assets/vendor/waypoints/noframework.waypoints.js"></script>
  <!-- <script src="assets/vendor/php-email-form/validate.js"></script> -->

  <!-- Template Main JS File -->
  <script src="assets/js/main.js"></script>

</body>

</html>